﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Acme.ConcreteMixDesign.Players
{
    public class Player : AuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 账号或学号
        /// </summary>
        public string accounts { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string password { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string nick { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string sex { get; set; }
        /// <summary>
        /// 学校
        /// </summary>
        public string school { get; set; }
        /// <summary>
        /// 专业
        /// </summary>
        public string speciality { get; set; }
        /// <summary>
        /// 班级
        /// </summary>
        public string classstr { get; set; }
        /// <summary>
        /// 职业-学生/老师/管理员
        /// </summary>
        public string job { get; set; }

        public Player() { }

        public Player(Guid guid,string accounts, string password, string nick, string sex, string school, string speciality, string classstr, string job)
        {
            this.Id = guid;
            this.accounts = accounts ?? string.Empty;
            this.password = password ?? string.Empty;
            this.nick = nick ?? string.Empty;
            this.sex = sex ?? string.Empty;
            this.school = school ?? string.Empty;
            this.speciality = speciality ?? string.Empty;
            this.classstr = classstr ?? string.Empty;
            this.job = job ?? string.Empty;
        }
    }
}
